package com.cf.entity;


import java.util.List;

public class Power {

  private long powerid;
  private String powername;
  private String path;
  private long level;
  private long parentid;
  private String icon;
  //当前菜单下的子菜单集合
  private List<Power> children;

  public List<Power> getChildren() {
    return children;
  }

  public void setChildren(List<Power> children) {
    this.children = children;
  }

  public long getPowerid() {
    return powerid;
  }

  public void setPowerid(long powerid) {
    this.powerid = powerid;
  }


  public String getPowername() {
    return powername;
  }

  public void setPowername(String powername) {
    this.powername = powername;
  }


  public String getPath() {
    return path;
  }

  public void setPath(String path) {
    this.path = path;
  }


  public long getLevel() {
    return level;
  }

  public void setLevel(long level) {
    this.level = level;
  }


  public long getParentid() {
    return parentid;
  }

  public void setParentid(long parentid) {
    this.parentid = parentid;
  }


  public String getIcon() {
    return icon;
  }

  public void setIcon(String icon) {
    this.icon = icon;
  }

  @Override
  public String toString() {
    return "Power{" +
            "powerid=" + powerid +
            ", powername='" + powername + '\'' +
            ", path='" + path + '\'' +
            ", level=" + level +
            ", parentid=" + parentid +
            ", icon='" + icon + '\'' +
            ", children=" + children +
            '}';
  }
}
